<?php
require_once WEB_MODEL_DIR . DIRECTORY_SEPARATOR . 'DAO' . DIRECTORY_SEPARATOR . 'GameTagDAO.php';

class GameTagService {
    
	public function getFullGameTagByName($context, $result, $name) {
        $gameTagArr = null;
        try {
            $gameTagDAO = new GameTagDAO($context);

            $gameTagArr = $gameTagDAO -> getFullGameTagByName($name);

        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }
        return $gameTagArr;
    }
    
	public function getGameTagByID($context, $result, $id) {
        $gameTagArr = null;
        try {
            $gameTagDAO = new GameTagDAO($context);

            $gameTagArr = $gameTagDAO -> getGameTagByID($id);

        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }
        return $gameTagArr;
    }
	
	public function getFullGameTag($context, $result) {
        $gameTagArr = null;
        try {
            $gameTagDAO = new GameTagDAO($context);

            $gameTagArr = $gameTagDAO -> getFullGameTag();

        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }
        return $gameTagArr;
    }
    
	public function getFullGameTagTPG($context, $result) {
        $gameTagArr = null;
        try {
            $gameTagDAO = new GameTagDAO($context);

            $gameTagArr = $gameTagDAO -> getFullGameTagTPG();

        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }
        return $gameTagArr;
    }
    
	public function getFullGameTagCGMB($context, $result) {
        $gameTagArr = null;
        try {
            $gameTagDAO = new GameTagDAO($context);

            $gameTagArr = $gameTagDAO -> getFullGameTagCGMB();

        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }
        return $gameTagArr;
    }
    
	public function getFullGameTagMMBG($context, $result) {
        $gameTagArr = null;
        try {
            $gameTagDAO = new GameTagDAO($context);

            $gameTagArr = $gameTagDAO -> getFullGameTagMMBG();

        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }
        return $gameTagArr;
    }
    
	public function getFullGameTagNSGT($context, $result) {
        $gameTagArr = null;
        try {
            $gameTagDAO = new GameTagDAO($context);

            $gameTagArr = $gameTagDAO -> getFullGameTagNSGT();

        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }
        return $gameTagArr;
    }  	

	public function insertGameTag($context, $result, $param) {
        try {

            $gameTagDAO = new GameTagDAO($context);

            $gameTagDAO -> insertGameTag($param);
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }
    }
    
	public function updateGameTag($context, $result, $param) {
        try {

            $gameTagDAO = new GameTagDAO($context);

            $gameTagDAO -> updateGameTag($param);
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }
    }
    	   
}
?>